<!--# layout("/common/layout.html",{"jsBase":"/js/cms/coreDevice/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">设备名称</label>
				<div class="layui-input-inline">
					<input type="text" id="dname" name="dname"  value="${coreDevice.dname}"   class="layui-input"  lay-verify="required">
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">设备型号</label>
				<div class="layui-input-inline">
					<input type="text" id="unitType" name="unitType"  value="${coreDevice.unitType}"   class="layui-input" >
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">设备号</label>
				<div class="layui-input-inline">
					<input type="text" id="code" name="code"  value="${coreDevice.code}"   class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">检定有限期</label>
                <div class="layui-input-inline">
                    <input type="text" id="deadline" name="deadline"  value="${coreDevice.deadline,"yyyy-MM-dd"}"   class="layui-input input-date" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">所属企业</label>
                <div class="layui-input-inline">
                    <select name="comId" id="comId" class="layui-input"  lay-verify="required"></select>
                </div>
            </div>

        </div>
    </div>
    <div class="layui-row">
        <layui:attachment name="img" batchFileUUID="${coreDevice.img!uuid()}" isNew="false" bizId="${coreDevice.id}" bizType="CoreDevice"/>
    </div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
	<input type="hidden" name="delFlag" value=${coreDevice.delFlag} />
    <input type="hidden" name="id" value=${coreDevice.id} />
    <input type="hidden" id="comidval" value=${coreDevice.comId} />
    <layui:submitButtons id="updateButton" />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
    var coreDeviceEdit = layui.edit
    coreDeviceEdit.init();
});
</script>
